<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>pyprocessing.pvector</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="pyprocessing-module.html">Package&nbsp;pyprocessing</a> ::
        Module&nbsp;pvector
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="pyprocessing.pvector-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="pyprocessing.pvector-module.html">Module pyprocessing.pvector</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">math</tt> <tt class="py-keyword">import</tt> <tt class="py-name">sqrt</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">new</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'PVector'</tt><tt class="py-op">]</tt> </tt>
<a name="PVectorMeta"></a><div id="PVectorMeta-def"><a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"> </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt> <a class="py-toggle" href="#" id="PVectorMeta-toggle" onclick="return toggle('PVectorMeta');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.pvector.PVectorMeta-class.html">PVectorMeta</a><tt class="py-op">(</tt><tt class="py-base-class">type</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVectorMeta-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PVectorMeta-expanded"><a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line">    <tt class="py-docstring">"""PVector's metaclass, used to enable class calls."""</tt> </tt>
<a name="PVectorMeta.add"></a><div id="PVectorMeta.add-def"><a name="L9"></a><tt class="py-lineno">  9</tt> <a class="py-toggle" href="#" id="PVectorMeta.add-toggle" onclick="return toggle('PVectorMeta.add');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVectorMeta-class.html#add">add</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">v1</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVectorMeta.add-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVectorMeta.add-expanded"><a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">v1</tt> <tt class="py-op">+</tt> <tt class="py-name">v2</tt> </tt>
</div><a name="PVectorMeta.sub"></a><div id="PVectorMeta.sub-def"><a name="L11"></a><tt class="py-lineno"> 11</tt> <a class="py-toggle" href="#" id="PVectorMeta.sub-toggle" onclick="return toggle('PVectorMeta.sub');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVectorMeta-class.html#sub">sub</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">v1</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVectorMeta.sub-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVectorMeta.sub-expanded"><a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">v1</tt> <tt class="py-op">-</tt> <tt class="py-name">v2</tt> </tt>
</div><a name="PVectorMeta.mult"></a><div id="PVectorMeta.mult-def"><a name="L13"></a><tt class="py-lineno"> 13</tt> <a class="py-toggle" href="#" id="PVectorMeta.mult-toggle" onclick="return toggle('PVectorMeta.mult');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVectorMeta-class.html#mult">mult</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">v1</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVectorMeta.mult-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVectorMeta.mult-expanded"><a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">v1</tt> <tt class="py-op">*</tt> <tt class="py-name">v2</tt> </tt>
</div><a name="PVectorMeta.div"></a><div id="PVectorMeta.div-def"><a name="L15"></a><tt class="py-lineno"> 15</tt> <a class="py-toggle" href="#" id="PVectorMeta.div-toggle" onclick="return toggle('PVectorMeta.div');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVectorMeta-class.html#div">div</a><tt class="py-op">(</tt><tt class="py-param">cls</tt><tt class="py-op">,</tt> <tt class="py-param">v1</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVectorMeta.div-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVectorMeta.div-expanded"><a name="L16"></a><tt class="py-lineno"> 16</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">v1</tt> <tt class="py-op">/</tt> <tt class="py-name">v2</tt> </tt>
</div></div><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line"> </tt>
<a name="overload"></a><div id="overload-def"><a name="L18"></a><tt class="py-lineno"> 18</tt> <a class="py-toggle" href="#" id="overload-toggle" onclick="return toggle('overload');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.pvector.overload-class.html">overload</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="overload-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="overload-expanded"><a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">    <tt class="py-docstring">"""Class used to implement the PVetor overload mechanism."""</tt> </tt>
<a name="overload.__init__"></a><div id="overload.__init__-def"><a name="L20"></a><tt class="py-lineno"> 20</tt> <a class="py-toggle" href="#" id="overload.__init__-toggle" onclick="return toggle('overload.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.overload-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="overload.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="overload.__init__-expanded"><a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-name">method</tt> </tt>
</div><a name="overload.__get__"></a><div id="overload.__get__-def"><a name="L22"></a><tt class="py-lineno"> 22</tt> <a class="py-toggle" href="#" id="overload.__get__-toggle" onclick="return toggle('overload.__get__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.overload-class.html#__get__">__get__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">instance</tt><tt class="py-op">,</tt> <tt class="py-param">cls</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="overload.__get__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="overload.__get__-expanded"><a name="L23"></a><tt class="py-lineno"> 23</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">instance</tt> <tt class="py-keyword">is</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">            <tt class="py-name">clsmethod</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt> </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">new</tt><tt class="py-op">.</tt><tt class="py-name">instancemethod</tt><tt class="py-op">(</tt><tt class="py-name">clsmethod</tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">)</tt> </tt>
<a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">new</tt><tt class="py-op">.</tt><tt class="py-name">instancemethod</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">instance</tt><tt class="py-op">,</tt> <tt class="py-name">cls</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L27"></a><tt class="py-lineno"> 27</tt>  <tt class="py-line"> </tt>
<a name="PVector"></a><div id="PVector-def"><a name="L28"></a><tt class="py-lineno"> 28</tt> <a class="py-toggle" href="#" id="PVector-toggle" onclick="return toggle('PVector');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html">PVector</a><tt class="py-op">(</tt><tt class="py-base-class">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PVector-expanded"><a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt class="py-docstring">"""A vector class that mimics Processing's PVector class."""</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line"> </tt>
<a name="L31"></a><tt class="py-lineno"> 31</tt>  <tt class="py-line">    <tt class="py-name">__metaclass__</tt> <tt class="py-op">=</tt> <tt id="link-0" class="py-name" targets="Class pyprocessing.pvector.PVectorMeta=pyprocessing.pvector.PVectorMeta-class.html"><a title="pyprocessing.pvector.PVectorMeta" class="py-name" href="#" onclick="return doclink('link-0', 'PVectorMeta', 'link-0');">PVectorMeta</a></tt> </tt>
<a name="PVector.__init__"></a><div id="PVector.__init__-def"><a name="L32"></a><tt class="py-lineno"> 32</tt> <a class="py-toggle" href="#" id="PVector.__init__-toggle" onclick="return toggle('PVector.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__init__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__init__-expanded"><a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-docstring">"""Constructor"""</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">        <tt class="py-name">list</tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Method pyprocessing.fbo.FBO.__init__()=pyprocessing.fbo.FBO-class.html#__init__,Method pyprocessing.flippolicy.AccumWindow.__init__()=pyprocessing.flippolicy.AccumWindow-class.html#__init__,Method pyprocessing.flippolicy.BackupWindow.__init__()=pyprocessing.flippolicy.BackupWindow-class.html#__init__,Method pyprocessing.flippolicy.FBOWindow.__init__()=pyprocessing.flippolicy.FBOWindow-class.html#__init__,Method pyprocessing.flippolicy.SingleBufferWindow.__init__()=pyprocessing.flippolicy.SingleBufferWindow-class.html#__init__,Method pyprocessing.pimage.PImage.__init__()=pyprocessing.pimage.PImage-class.html#__init__,Method pyprocessing.pvector.PVector.__init__()=pyprocessing.pvector.PVector-class.html#__init__,Method pyprocessing.pvector.overload.__init__()=pyprocessing.pvector.overload-class.html#__init__,Method pyprocessing.shapes.CatmullRomBlend.__init__()=pyprocessing.shapes.CatmullRomBlend-class.html#__init__"><a title="pyprocessing.fbo.FBO.__init__
pyprocessing.flippolicy.AccumWindow.__init__
pyprocessing.flippolicy.BackupWindow.__init__
pyprocessing.flippolicy.FBOWindow.__init__
pyprocessing.flippolicy.SingleBufferWindow.__init__
pyprocessing.pimage.PImage.__init__
pyprocessing.pvector.PVector.__init__
pyprocessing.pvector.overload.__init__
pyprocessing.shapes.CatmullRomBlend.__init__" class="py-name" href="#" onclick="return doclink('link-1', '__init__', 'link-1');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">0</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">3</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">2</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-number">0.0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">extend</tt><tt class="py-op">(</tt><tt class="py-name">args</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">     </tt>
<a name="PVector.set"></a><div id="PVector.set-def"><a name="L40"></a><tt class="py-lineno"> 40</tt> <a class="py-toggle" href="#" id="PVector.set-toggle" onclick="return toggle('PVector.set');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#set">set</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-op">*</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.set-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.set-expanded"><a name="L41"></a><tt class="py-lineno"> 41</tt>  <tt class="py-line">        <tt class="py-docstring">"""Assignment."""</tt> </tt>
<a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">=</tt> <tt id="link-2" class="py-name" targets="Class pyprocessing.pvector.PVector=pyprocessing.pvector.PVector-class.html"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-2', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
</div><a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">     </tt>
<a name="PVector.get"></a><div id="PVector.get-def"><a name="L44"></a><tt class="py-lineno"> 44</tt> <a class="py-toggle" href="#" id="PVector.get-toggle" onclick="return toggle('PVector.get');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#get">get</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.get-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.get-expanded"><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns a copy."""</tt> </tt>
<a name="L46"></a><tt class="py-lineno"> 46</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-3" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-3', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">     </tt>
<a name="PVector.__add__"></a><div id="PVector.__add__-def"><a name="L48"></a><tt class="py-lineno"> 48</tt> <a class="py-toggle" href="#" id="PVector.__add__-toggle" onclick="return toggle('PVector.__add__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__add__">__add__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__add__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__add__-expanded"><a name="L49"></a><tt class="py-lineno"> 49</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns a PVector which is a sum of this vector with vector v2.</tt> </tt>
<a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line"><tt class="py-docstring">        Notice that this overrides the common meaning of the + operator for</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line"><tt class="py-docstring">        lists."""</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-4" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-4', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">     </tt>
<a name="PVector.__iadd__"></a><div id="PVector.__iadd__-def"><a name="L54"></a><tt class="py-lineno"> 54</tt> <a class="py-toggle" href="#" id="PVector.__iadd__-toggle" onclick="return toggle('PVector.__iadd__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__iadd__">__iadd__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__iadd__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__iadd__-expanded"><a name="L55"></a><tt class="py-lineno"> 55</tt>  <tt class="py-line">        <tt class="py-docstring">"""Must also override the += operator"""</tt> </tt>
<a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
</div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line">         </tt>
<a name="L58"></a><tt class="py-lineno"> 58</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">overload</tt> </tt>
<a name="PVector.add"></a><div id="PVector.add-def"><a name="L59"></a><tt class="py-lineno"> 59</tt> <a class="py-toggle" href="#" id="PVector.add-toggle" onclick="return toggle('PVector.add');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#add">add</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.add-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.add-expanded"><a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">        <tt class="py-docstring">"""Adds vector v2 to this vector."""</tt> </tt>
<a name="L61"></a><tt class="py-lineno"> 61</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> <tt class="py-op">+</tt> <tt class="py-name">v2</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line"> </tt>
<a name="PVector.__sub__"></a><div id="PVector.__sub__-def"><a name="L63"></a><tt class="py-lineno"> 63</tt> <a class="py-toggle" href="#" id="PVector.__sub__-toggle" onclick="return toggle('PVector.__sub__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__sub__">__sub__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__sub__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__sub__-expanded"><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the difference between this vector and vector v2."""</tt> </tt>
<a name="L65"></a><tt class="py-lineno"> 65</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-5" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-5', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">-</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">         </tt>
<a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">overload</tt> </tt>
<a name="PVector.sub"></a><div id="PVector.sub-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="PVector.sub-toggle" onclick="return toggle('PVector.sub');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#sub">sub</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.sub-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.sub-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">        <tt class="py-docstring">"""Subtracts vector v2 from this vector."""</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt> <tt class="py-op">-</tt> <tt class="py-name">v2</tt> </tt>
</div><a name="L71"></a><tt class="py-lineno"> 71</tt>  <tt class="py-line"> </tt>
<a name="PVector.__mul__"></a><div id="PVector.__mul__-def"><a name="L72"></a><tt class="py-lineno"> 72</tt> <a class="py-toggle" href="#" id="PVector.__mul__-toggle" onclick="return toggle('PVector.__mul__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__mul__">__mul__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__mul__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__mul__-expanded"><a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the product between this vector and a scalar or a vector."""</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt> <tt class="py-op">(</tt><tt class="py-name">v2</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-6" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-6', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L76"></a><tt class="py-lineno"> 76</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  </tt>
<a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-7" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-7', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"> </tt>
<a name="L79"></a><tt class="py-lineno"> 79</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">overload</tt> </tt>
<a name="PVector.mult"></a><div id="PVector.mult-def"><a name="L80"></a><tt class="py-lineno"> 80</tt> <a class="py-toggle" href="#" id="PVector.mult-toggle" onclick="return toggle('PVector.mult');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#mult">mult</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.mult-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.mult-expanded"><a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">        <tt class="py-docstring">"""Multiplies this vector by v2 (a vector or a scalar)"""</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt> </tt>
</div><a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line"> </tt>
<a name="PVector.__div__"></a><div id="PVector.__div__-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="PVector.__div__-toggle" onclick="return toggle('PVector.__div__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__div__">__div__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.__div__-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.__div__-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-docstring">"""Returns the quotient between this vector and a scalar or a vector."""</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt> <tt class="py-op">(</tt><tt class="py-name">v2</tt><tt class="py-op">,</tt> <tt class="py-name">list</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-8" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-8', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-9" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-9', 'PVector', 'link-2');">PVector</a></tt> <tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt><tt class="py-op">/</tt><tt class="py-name">v2</tt> <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line"> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">    <tt class="py-decorator">@</tt><tt class="py-decorator">overload</tt> </tt>
<a name="PVector.div"></a><div id="PVector.div-def"><a name="L92"></a><tt class="py-lineno"> 92</tt> <a class="py-toggle" href="#" id="PVector.div-toggle" onclick="return toggle('PVector.div');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#div">div</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.div-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.div-expanded"><a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-docstring">"""Divides this vector by v2 (a vector or a scalar)"""</tt> </tt>
<a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">/</tt><tt class="py-name">v2</tt> </tt>
</div><a name="L95"></a><tt class="py-lineno"> 95</tt>  <tt class="py-line">      </tt>
<a name="PVector.dot"></a><div id="PVector.dot-def"><a name="L96"></a><tt class="py-lineno"> 96</tt> <a class="py-toggle" href="#" id="PVector.dot-toggle" onclick="return toggle('PVector.dot');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#dot">dot</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.dot-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.dot-expanded"><a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">        <tt class="py-docstring">"""Dot product between two vectors."""</tt> </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">*</tt><tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
</div><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line">  </tt>
<a name="PVector.mag"></a><div id="PVector.mag-def"><a name="L100"></a><tt class="py-lineno">100</tt> <a class="py-toggle" href="#" id="PVector.mag-toggle" onclick="return toggle('PVector.mag');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#mag">mag</a> <tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.mag-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.mag-expanded"><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">        <tt class="py-docstring">"""Magnitude of the vector."""</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">sqrt</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-10" class="py-name" targets="Method pyprocessing.pvector.PVector.dot()=pyprocessing.pvector.PVector-class.html#dot"><a title="pyprocessing.pvector.PVector.dot" class="py-name" href="#" onclick="return doclink('link-10', 'dot', 'link-10');">dot</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">                </tt>
<a name="PVector.cross"></a><div id="PVector.cross-def"><a name="L104"></a><tt class="py-lineno">104</tt> <a class="py-toggle" href="#" id="PVector.cross-toggle" onclick="return toggle('PVector.cross');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#cross">cross</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">v2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.cross-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.cross-expanded"><a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">        <tt class="py-docstring">"""Cross product between two vectors."""</tt> </tt>
<a name="L106"></a><tt class="py-lineno">106</tt>  <tt class="py-line">        <tt class="py-name">v1</tt><tt class="py-op">=</tt><tt class="py-name">self</tt> </tt>
<a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-11" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-11', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">                <tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">                <tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">-</tt> <tt class="py-name">v2</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">*</tt> <tt class="py-name">v1</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">     </tt>
<a name="PVector.normalize"></a><div id="PVector.normalize-def"><a name="L111"></a><tt class="py-lineno">111</tt> <a class="py-toggle" href="#" id="PVector.normalize-toggle" onclick="return toggle('PVector.normalize');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#normalize">normalize</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PVector.normalize-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PVector.normalize-expanded"><a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt class="py-docstring">"""Makes this a unit vector."""</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">/</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Function pyprocessing.mathfunctions.mag()=pyprocessing.mathfunctions-module.html#mag,Method pyprocessing.pvector.PVector.mag()=pyprocessing.pvector.PVector-class.html#mag"><a title="pyprocessing.mathfunctions.mag
pyprocessing.pvector.PVector.mag" class="py-name" href="#" onclick="return doclink('link-12', 'mag', 'link-12');">mag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">         </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">    <tt class="py-comment"># Getters and setters</tt> </tt>
<a name="PVector.__getx"></a><div id="PVector.__getx-def"><a name="L116"></a><tt class="py-lineno">116</tt> <a class="py-toggle" href="#" id="PVector.__getx-toggle" onclick="return toggle('PVector.__getx');">-</a><tt class="py-line"><tt class="py-comment"></tt>    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__getx">__getx</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line"> </tt>
<a name="PVector.__setx"></a><div id="PVector.__setx-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="PVector.__setx-toggle" onclick="return toggle('PVector.__setx');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__setx">__setx</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">x</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-13" class="py-name" targets="Variable pyprocessing.globs.mouse.x=pyprocessing.globs.mouse-class.html#x,Variable pyprocessing.globs.pmouse.x=pyprocessing.globs.pmouse-class.html#x,Variable pyprocessing.pvector.PVector.x=pyprocessing.pvector.PVector-class.html#x"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-13', 'x', 'link-13');">x</a></tt> </tt>
</div><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">     </tt>
<a name="PVector.__gety"></a><div id="PVector.__gety-def"><a name="L120"></a><tt class="py-lineno">120</tt> <a class="py-toggle" href="#" id="PVector.__gety-toggle" onclick="return toggle('PVector.__gety');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__gety">__gety</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
</div><a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line"> </tt>
<a name="PVector.__sety"></a><div id="PVector.__sety-def"><a name="L122"></a><tt class="py-lineno">122</tt> <a class="py-toggle" href="#" id="PVector.__sety-toggle" onclick="return toggle('PVector.__sety');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__sety">__sety</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">y</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-14" class="py-name" targets="Variable pyprocessing.globs.mouse.y=pyprocessing.globs.mouse-class.html#y,Variable pyprocessing.globs.pmouse.y=pyprocessing.globs.pmouse-class.html#y,Variable pyprocessing.pvector.PVector.y=pyprocessing.pvector.PVector-class.html#y"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-14', 'y', 'link-14');">y</a></tt> </tt>
</div><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line">     </tt>
<a name="PVector.__getz"></a><div id="PVector.__getz-def"><a name="L124"></a><tt class="py-lineno">124</tt> <a class="py-toggle" href="#" id="PVector.__getz-toggle" onclick="return toggle('PVector.__getz');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__getz">__getz</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
</div><a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line"> </tt>
<a name="PVector.__setz"></a><div id="PVector.__setz-def"><a name="L126"></a><tt class="py-lineno">126</tt> <a class="py-toggle" href="#" id="PVector.__setz-toggle" onclick="return toggle('PVector.__setz');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector.PVector-class.html#__setz">__setz</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">z</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt> <tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-15" class="py-name" targets="Variable pyprocessing.pvector.PVector.z=pyprocessing.pvector.PVector-class.html#z"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-15', 'z', 'link-15');">z</a></tt> </tt>
</div><a name="L127"></a><tt class="py-lineno">127</tt>  <tt class="py-line">     </tt>
<a name="L128"></a><tt class="py-lineno">128</tt>  <tt class="py-line">    <tt class="py-comment"># x, y, z fields implemented through properties</tt> </tt>
<a name="L129"></a><tt class="py-lineno">129</tt>  <tt class="py-line"><tt class="py-comment"></tt>    <tt id="link-16" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-16', 'x', 'link-13');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-17" class="py-name" targets="Method pyprocessing.pvector.PVector.__getx()=pyprocessing.pvector.PVector-class.html#__getx"><a title="pyprocessing.pvector.PVector.__getx" class="py-name" href="#" onclick="return doclink('link-17', '__getx', 'link-17');">__getx</a></tt><tt class="py-op">,</tt><tt id="link-18" class="py-name" targets="Method pyprocessing.pvector.PVector.__setx()=pyprocessing.pvector.PVector-class.html#__setx"><a title="pyprocessing.pvector.PVector.__setx" class="py-name" href="#" onclick="return doclink('link-18', '__setx', 'link-18');">__setx</a></tt><tt class="py-op">)</tt> </tt>
<a name="L130"></a><tt class="py-lineno">130</tt>  <tt class="py-line">    <tt id="link-19" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-19', 'y', 'link-14');">y</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-20" class="py-name" targets="Method pyprocessing.pvector.PVector.__gety()=pyprocessing.pvector.PVector-class.html#__gety"><a title="pyprocessing.pvector.PVector.__gety" class="py-name" href="#" onclick="return doclink('link-20', '__gety', 'link-20');">__gety</a></tt><tt class="py-op">,</tt><tt id="link-21" class="py-name" targets="Method pyprocessing.pvector.PVector.__sety()=pyprocessing.pvector.PVector-class.html#__sety"><a title="pyprocessing.pvector.PVector.__sety" class="py-name" href="#" onclick="return doclink('link-21', '__sety', 'link-21');">__sety</a></tt><tt class="py-op">)</tt> </tt>
<a name="L131"></a><tt class="py-lineno">131</tt>  <tt class="py-line">    <tt id="link-22" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-22', 'z', 'link-15');">z</a></tt> <tt class="py-op">=</tt> <tt class="py-name">property</tt><tt class="py-op">(</tt><tt id="link-23" class="py-name" targets="Method pyprocessing.pvector.PVector.__getz()=pyprocessing.pvector.PVector-class.html#__getz"><a title="pyprocessing.pvector.PVector.__getz" class="py-name" href="#" onclick="return doclink('link-23', '__getz', 'link-23');">__getz</a></tt><tt class="py-op">,</tt><tt id="link-24" class="py-name" targets="Method pyprocessing.pvector.PVector.__setz()=pyprocessing.pvector.PVector-class.html#__setz"><a title="pyprocessing.pvector.PVector.__setz" class="py-name" href="#" onclick="return doclink('link-24', '__setz', 'link-24');">__setz</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L132"></a><tt class="py-lineno">132</tt>  <tt class="py-line"> </tt>
<a name="computeNormal"></a><div id="computeNormal-def"><a name="L133"></a><tt class="py-lineno">133</tt>  <tt class="py-line"><tt class="py-comment">#test program</tt> </tt>
<a name="L134"></a><tt class="py-lineno">134</tt>  <tt class="py-line"><tt class="py-comment"></tt><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt><tt class="py-op">==</tt><tt class="py-string">"__main__"</tt><tt class="py-op">:</tt> </tt>
<a name="L135"></a><tt class="py-lineno">135</tt> <a class="py-toggle" href="#" id="computeNormal-toggle" onclick="return toggle('computeNormal');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="pyprocessing.pvector-module.html#computeNormal">computeNormal</a><tt class="py-op">(</tt><tt class="py-param">p0</tt><tt class="py-op">,</tt><tt class="py-param">p1</tt><tt class="py-op">,</tt><tt class="py-param">p2</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="computeNormal-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="computeNormal-expanded"><a name="L136"></a><tt class="py-lineno">136</tt>  <tt class="py-line">        <tt class="py-docstring">"""Computes a normal for triangle p0-p1-p2."""</tt> </tt>
<a name="L137"></a><tt class="py-lineno">137</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt id="link-25" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-25', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt id="link-26" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-26', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-name">p0</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name" targets="Method pyprocessing.pvector.PVector.cross()=pyprocessing.pvector.PVector-class.html#cross"><a title="pyprocessing.pvector.PVector.cross" class="py-name" href="#" onclick="return doclink('link-27', 'cross', 'link-27');">cross</a></tt><tt class="py-op">(</tt><tt id="link-28" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-28', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-name">p2</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt id="link-29" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-29', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-name">p1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L138"></a><tt class="py-lineno">138</tt>  <tt class="py-line">    <tt class="py-name">a</tt> <tt class="py-op">=</tt> <tt id="link-30" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-30', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">3</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="pyprocessing.pvector.PVector.cross" class="py-name" href="#" onclick="return doclink('link-31', 'cross', 'link-27');">cross</a></tt><tt class="py-op">(</tt><tt id="link-32" class="py-name"><a title="pyprocessing.pvector.PVector" class="py-name" href="#" onclick="return doclink('link-32', 'PVector', 'link-2');">PVector</a></tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L139"></a><tt class="py-lineno">139</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt> </tt>
<a name="L140"></a><tt class="py-lineno">140</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-33', 'x', 'link-13');">x</a></tt><tt class="py-op">,</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="pyprocessing.globs.mouse.y
pyprocessing.globs.pmouse.y
pyprocessing.pvector.PVector.y" class="py-name" href="#" onclick="return doclink('link-34', 'y', 'link-14');">y</a></tt><tt class="py-op">,</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="pyprocessing.pvector.PVector.z" class="py-name" href="#" onclick="return doclink('link-35', 'z', 'link-15');">z</a></tt> </tt>
<a name="L141"></a><tt class="py-lineno">141</tt>  <tt class="py-line">    <tt class="py-name">b</tt> <tt class="py-op">=</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name" targets="Method pyprocessing.pimage.PImage.get()=pyprocessing.pimage.PImage-class.html#get,Function pyprocessing.pimage.get()=pyprocessing.pimage-module.html#get,Method pyprocessing.pvector.PVector.get()=pyprocessing.pvector.PVector-class.html#get"><a title="pyprocessing.pimage.PImage.get
pyprocessing.pimage.get
pyprocessing.pvector.PVector.get" class="py-name" href="#" onclick="return doclink('link-36', 'get', 'link-36');">get</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L142"></a><tt class="py-lineno">142</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-37" class="py-name"><a title="pyprocessing.globs.mouse.x
pyprocessing.globs.pmouse.x
pyprocessing.pvector.PVector.x" class="py-name" href="#" onclick="return doclink('link-37', 'x', 'link-13');">x</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L143"></a><tt class="py-lineno">143</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">,</tt><tt class="py-name">b</tt> </tt>
<a name="L144"></a><tt class="py-lineno">144</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name" targets="Method pyprocessing.pvector.PVector.add()=pyprocessing.pvector.PVector-class.html#add,Method pyprocessing.pvector.PVectorMeta.add()=pyprocessing.pvector.PVectorMeta-class.html#add"><a title="pyprocessing.pvector.PVector.add
pyprocessing.pvector.PVectorMeta.add" class="py-name" href="#" onclick="return doclink('link-38', 'add', 'link-38');">add</a></tt><tt class="py-op">(</tt><tt class="py-name">b</tt><tt class="py-op">)</tt> </tt>
<a name="L145"></a><tt class="py-lineno">145</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">+</tt><tt class="py-name">b</tt><tt class="py-op">,</tt><tt class="py-name">a</tt><tt class="py-op">,</tt><tt class="py-name">a</tt><tt class="py-op">-</tt><tt class="py-name">b</tt><tt class="py-op">,</tt><tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="pyprocessing.mathfunctions.mag
pyprocessing.pvector.PVector.mag" class="py-name" href="#" onclick="return doclink('link-39', 'mag', 'link-12');">mag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L146"></a><tt class="py-lineno">146</tt>  <tt class="py-line">    <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-40" class="py-name" targets="Method pyprocessing.pvector.PVector.normalize()=pyprocessing.pvector.PVector-class.html#normalize"><a title="pyprocessing.pvector.PVector.normalize" class="py-name" href="#" onclick="return doclink('link-40', 'normalize', 'link-40');">normalize</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L147"></a><tt class="py-lineno">147</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">a</tt><tt class="py-op">,</tt> <tt class="py-name">a</tt><tt class="py-op">.</tt><tt id="link-41" class="py-name"><a title="pyprocessing.mathfunctions.mag
pyprocessing.pvector.PVector.mag" class="py-name" href="#" onclick="return doclink('link-41', 'mag', 'link-12');">mag</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno">148</tt>  <tt class="py-line">    <tt class="py-keyword">print</tt> <tt class="py-name">computeNormal</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-number">0</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L149"></a><tt class="py-lineno">149</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="pyprocessing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

      <th class="navbar" width="100%"></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Mon Jun 11 22:06:48 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
